Copy folder content including hidden files
You can copy the content of a folder /source to another existing folder /dest, including hidden files, with the command:
$ cp -a /source/. /dest/
- The
-aoption is an improved recursive option, that preserve all file attributes, and also preserve symlinks. - The
.at end of the source path is a specificcpsyntax that allowes to copy all files and folders, including hidden ones.